package com.example.sfm.pojo.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Schema(name = "教师信息视图对象",description = "教师信息视图对象")
public class TeachersVo {
    @Schema(description = "教师ID")
    private Integer id;

    @Schema(description = "用户ID")
    private Integer userId;


    @Schema(description = "教师姓名")
    @ExcelProperty("教师姓名")
    private String teacherName;

    @Schema(description = "教师编号")
    @ExcelProperty("教师编号")
    private String teacherNumber;

    @Schema(description = "所属学院")
    @ExcelProperty("所属学院")
    private String department;

    @Schema(description = "职称")
    @ExcelProperty("职称")
    private String title;

    @Schema(description = "研究方向")
    @ExcelProperty("研究方向")
    private String researchArea;

    @Schema(description = "办公电话")
    @ExcelProperty("办公电话")
    private String officePhone;

    @Schema(description = "办公室地址")
    @ExcelProperty("办公室地址")
    private String officeLocation;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;


    @Schema(description = "电子邮箱")
    @ExcelProperty("电子邮箱")
    private String email;


    @Schema(description = "教师头像")
    private String avatar;
}